package com.xj.common.bussiness.wxLogin.entity;

public class WxAccessToken {
    private WxAccessToken(){

    }
    /**
     * 获取到的access_token
     */
    private static String access_token;

    /**
     * 有效时间（两个小时，7200s)
     */
    private static int  expires_in;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }



    //实例化单例对象
    private static WxAccessToken wxAccessToken;

    //静态方法（静态方法，类可以直接调用），用于获取单例
    public static WxAccessToken getWxAccessToken(){
        if(wxAccessToken==null){
            wxAccessToken=new WxAccessToken();
        }
        return wxAccessToken;
    }
}
